package com.cn.web;

import com.cn.dto.OrderInfoDto;
import com.cn.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: chenyuncong
 * @Date: 2020/6/28 11:44
 */
@RestController
@RequestMapping("order")
public class OrderInfoController {
    @Autowired
    private OrderInfoService orderInfoService;


    //下订单
    @PostMapping("createOrder")
    public void createOrder(OrderInfoDto orderInfoDto){
        orderInfoService.createOrder(orderInfoDto);
    }
    //
}
